package com.ymatou.iapi.advancewithdraw.testcase;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.advancewithdraw.service.AWAccountCheckCall;
import com.ymatou.iapi.sellerproduct.service.ModifyProductPicCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*检查账户状态
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_AWAccountCheck{
	private static AWAccountCheckCall awaccountcheckCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("检查账户状态");
	}

	@Before
	public void caseUp() {
		awaccountcheckCall=new AWAccountCheckCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(awaccountcheckCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Ts_AWAccountCheck_001() {
		Logger.start(true,"检查账户状态");
		try {
			//接口返回true

			Map<String, Object> updateMap = new HashMap<String,Object>();
			updateMap.put("SellerId", "3383");
			
			JSONObject accontCheck = awaccountcheckCall.callAndGetReturnData(updateMap);	
			String success=  accontCheck.getString("Success");
			if(success.toLowerCase().equals("true")){
				
			}			
			//以上是调用api获取返回值
			
			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}